import os
import sys
import pytest

curPath = os.path.dirname(os.path.abspath(__file__))
sys.path.append(curPath)


if __name__ == '__main__':
    # -x参数：用例失败就停止;--self-contained-html将css格式写入html文件，可以直接分享报告，不需要将css文件一同分享
    pytest.main(['-v', f"{curPath}\\tests","--html=../report/report.html","--self-contained-html"])
